#pragma once

#define ROW 9
#define COL 9
#define ROWS ROW+2
#define COLS COL+2
#define SUM 10

#include<stdio.h>
#include<stdlib.h>
#include<time.h>

void Init_board(char board[][COLS], int rows, int cols, char set);
void print_board(char board[][COLS], int row, int col);
void in_put();
void set_mine(char board[][COLS], int row, int col,int sum);
int judge_setmine(char mine[][COLS], int row, int col);
int judge(char mine[][COLS], char board[][COLS], int row, int col);

void expand(char mine[][COLS], char board[][COLS], int x, int y);

void find_mine(char mine[][COLS], char board[][COLS], int row, int col, int sum);